//
// Created by 吴锐 on 2022/2/25.
//

#include "iostream"

using namespace std;

class MyInteger {
    friend ostream &operator<<(ostream &cout, MyInteger &myint);

private:
    int m_Num;

public:
    MyInteger() {
        m_Num = 0;
    }

    MyInteger &operator++() {
        m_Num++;
        return *this;
    }

    MyInteger operator++(int) {
        MyInteger temp = *this;
        m_Num++;
        return temp;
    }
};

ostream &operator<<(ostream &cout, MyInteger &myint) {
    cout << myint.m_Num;
    return cout;
}

void test01() {
    MyInteger myint;
    cout << ++(++myint) << endl;
}

void test02() {
    MyInteger myint;
//    cout << myint++ << endl;
    cout << myint << endl;
}

int main() {
//    test01();
    test02();
//    int a = 0;
//    cout << ++(++a) << endl;
//    cout << a << endl;
    return 0;
}